package com.jimikongjian.service.base;

import com.jimikongjian.models.ResponseMessage;
import com.jimikongjian.models.RoomFollower;

/**
 * Created by fuxiuyang on 17/3/14.
 */
public interface IRoomFollowerService {


    /**
     * 关注某一个空间
     * @param roomFollower
     * @return
     */
    public ResponseMessage followerRoom(RoomFollower roomFollower);


    /**
     * 通过空间的id，查找该空间内的所有的用户
     * @param roomId
     * @return
     */
    public ResponseMessage selectRoomFollowerByRoomId(int roomId, int userId, int start, int length);


    /**
     * 通过用户的id号，查找该用户关注的所有的空间的id号
     * @param userId
     * @return
     */
    public ResponseMessage selectRoomFollowerByUserId(int userId);


    /**
     * 通过用户的id号，查找该空间内是否含有该用户
     * @param userId
     * @param roomId
     * @return
     */
    public boolean hasUser(int userId, int roomId);


    /**
     * 通过用户的id号，查找该空间内是否含有该用户
     * @param userId
     * @param roomId
     * @return
     */
    public ResponseMessage hasUserByUserIdAndRoomId(int userId, int roomId);

    /**
     * 删除该用户关注的的某一空间
     * @param userId
     * @param roomId
     * @param operator
     * @return
     */
    public ResponseMessage deleteRoomFollower(int userId, int roomId, int operator);
}
